package com.app.mapper;

import com.app.model.StatusModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface StatusMapper extends BaseMapper<StatusModel> {
    List<StatusModel> selectByProjectId(int projectId);

    @Update("update lm_project_status set remarks=#{remarks} where project_id=#{projectId} and status=#{status}")
    void updateByProjectId(int projectId,String remarks,int status);

    List<StatusModel> selectAll();
}

